import PySimpleGUI as sg
sg.change_look_and_feel('DarkAmber')
layout = [[sg.T('这是一个非常基础的 PySimpleGUI layout', key='-output-')],
          [sg.In(key='-in-')],
          [sg.B('提交'), sg.B('退出')]]

window = sg.Window('我的第一个Window', layout, grab_anywhere=True)

while True:
    event, values = window.read()
    #print(event, values)
    if event in (None, '退出'):
        break
    elif event == '提交':
        window['-output-'].update(values['-in-'])
window.close()
